import http from "../../common/http.js"

export default {
	// 订单详情
	submit_preview: (data, needLoading) => {
		return http.POST('/plugin/adopt/adopt-order/submit-preview', data, needLoading)
	},
	// 订单提交
	submit: (data, needLoading) => {
		return http.POST('/plugin/adopt/adopt-order/submit', data, needLoading)
	},
	// 订单列表
	order_list: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-order/list', data, needLoading)
	},
	// 订单列表
	order_detail: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-order/detail', data, needLoading)
	},
	// 采摘
	pick: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-order/pick', data, needLoading)
	},
	// 保管
	preserve: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-order/preserve', data, needLoading)
	},
	// 自采状态
	self_pick_state: (data, needLoading) => {
		return http.POST('/plugin/adopt/adopt-order/self-pick-state', data, needLoading)
	},
	//采摘完成处理结果 带走，入库
	pick_treatment_method:(data, needLoading) => {
		return http.POST('/plugin/adopt/adopt-order/pick-treatment-method', data, needLoading)
	},
	// 自采  代采提交
	submit_cost_preview: (data, needLoading) => {
		return http.POST('/plugin/adopt/adopt-cost-order/submit-preview', data, needLoading)
	},
	// 保管
	submit_cost: (data, needLoading) => {
		return http.POST('/plugin/adopt/adopt-cost-order/submit', data, needLoading)
	},
	// 支付
	pay_data: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-cost-order/pay-data', data, needLoading)
	},
	// 费用详情 
	detail_cost: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-cost-order/detail', data, needLoading)
	},
	// 费用列表   参数和订单列表一样
	list_cost: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-cost-order/list', data, needLoading)
	},
	// 确认收货
	confirm: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-cost-order/confirm', data, needLoading)
	},
	//  订单物流信息
	express_detail: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-cost-order/express-detail', data, needLoading)
	},
	// 订单取消
	revoke: (data, needLoading) => {
		return http.GET('/plugin/adopt/adopt-cost-order/revoke', data, needLoading)
	},
	// 文章详情
	article_detail: (data, needLoading) => {
		return http.GET('/default/article-detail', data, needLoading)
	}
}
